package com.huike.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huike.pojo.BusinessOpportunity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@ApiModel("统计实体类")
public class TallyDto extends BusinessOpportunity {
    @ApiModelProperty("归属部门")
    private String deptName;

    @ApiModelProperty("合同数量")
    private Integer num;

    @ApiModelProperty("成交金额")
    private Integer total_amount;

    @ApiModelProperty("当前起始时间")
    private Date startDate;

    @ApiModelProperty("当前时间")
    private Date endDate;

    @ApiModelProperty("转化商机时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime businessCreateTime;

    @ApiModelProperty("商机状态")
    private String businessStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime clueCreateTime;

    @ApiModelProperty("线索状态")
    private String clueStatus;

    @ApiModelProperty("活动详情")
    private String code;

    @ApiModelProperty("成交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contractCreateTime;

    @ApiModelProperty("部门id")
    private String deptId;

    @ApiModelProperty("活动方案")
    private String info;

    @ApiModelProperty("成交金额")
    private String order;


}
